package org.sunflower.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import org.sunflower.domian.dto.UserDto;

import java.util.List;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-09-29 16:14
 **/
@FeignClient(name = "user-service")
public interface UserFeignClient {

    @GetMapping(value = "/user")
    List<UserDto> list(@RequestParam String username);

    @PostMapping("/user")
    Object addUser();
}
